﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/style.css" rel="stylesheet">
    <link href="~/Content/common/fontello.css" rel="stylesheet" />
    @RenderSection("head", required: false)
    @*获取当前的路由（contrall）*@
    @{  string contrall = ViewContext.RouteData.Values["controller"].ToString().ToLower();
        string current = "current";
    }
</head>
<body>
    <header class="site-header js-site-header -fixed" id="">
        <div class="container">
            <div class="sm-9 main">
                <a href="#" class="logo">
                    <i class="icon-stackexchange"></i>
                </a>
                <nav class="navigation pull-left" role="navigation">
                    <ol class="list">
                        <li class="item @{if (contrall=="index"){<text>current</text>}}">
                            <a href="/">问题</a>
                        </li>
                        <li class="item">
                            <a href="#">开发者社区</a>

                        </li>
                        <li class="item @{if (contrall=="store"){<text>current</text>}}">
                            <a href="/store">
                                商城
                                <small class="beta-badge">BETA</small>
                            </a>
                        </li>
                        <li class="item">
                            <a href="#">专栏</a>
                        </li>
                        <li class="item @{if (contrall=="users"){<text>current</text>}}">
                            <a href="/users">共享</a>
                        </li>
                    </ol>
                </nav>
                <form method="get" class="searchbar">
                    <input type="text" class="f-input" placeholder="搜索" />
                </form>
            </div>
            <div class="sm-3 actions">
                <nav class="navigation pull-left" role="navigation">
                    <ol class="list">
                        <li class="item"><a href="#"><i class="icon-help-circled"></i></a></li>
                        <li class="item"><a href="#"><i class="icon-inbox"></i></a></li>
                    </ol>
                </nav>
                <div class="cats">
                    <a class="login-link btn-clear" href="/users/login">登录</a>
                    <a class="login-link btn" href="/users/signup">注册</a>
                </div>
            </div>
        </div>
    </header>

    <div class="container">
        <div class="content">
            @RenderBody()

        </div>
    </div>

    <footer class="site-footer">
        <div class="container">
            <div class="sm-3">
                <h1>StackOverflow</h1>
            </div>
            <div class="sm-2">
                <h5 class="title">网站相关</h5>
                <nav>
                    <ul class="-list">
                        <li class="-item">
                            <a href="#">关于我们</a>
                        </li>
                        <li class="-item">
                            <a href="#">服务条款</a>
                        </li>
                        <li class="-item">
                            <a href="#">帮助中心</a>
                        </li>
                        <li class="-item">
                            <a href="#">每周精选</a>
                        </li>
                        <li class="-item">
                            <a href="#">编辑器语法</a>
                        </li>
                        <li class="-item">
                            <a href="#">社区服务中心</a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="sm-2">
                <h5 class="title">联系合作</h5>
                <nav>
                    <ul class="-list">
                        <li class="-item">
                            <a href="#">联系我们</a>
                        </li>
                        <li class="-item">
                            <a href="#">加入我们</a>
                        </li>
                        <li class="-item">
                            <a href="#">建议反馈</a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="sm-2">
                <h5 class="title">社区日志</h5>
                <nav>
                    <ul class="-list">
                        <li class="-item">
                            <a href="#">产品技术日志</a>
                        </li>
                        <li class="-item">
                            <a href="#">社区运营日志</a>
                        </li>
                        <li class="-item">
                            <a href="#">团队日志</a>
                        </li>
                        <li class="-item">
                            <a href="#">社区访谈</a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="sm-3 -copyright">
                <ul class="-list">
                    <li class="-item"><a href="#">博客</a>&nbsp;·</li>
                    <li class="-item">&nbsp;<a href="#">知乎</a> ·</li>
                    <li class="-item">&nbsp;<a href="#">微博</a> ·</li>
                    <li class="-item">&nbsp;<a href="#">GitHub</a></li>
                </ul>
                <div class="clear">
                    <p>
                        本站信息由用户自行...<br />
                        &copy 2017 bishisan
                    </p>
                </div>
            </div>
        </div>
    </footer>

    <script src="~/Scripts/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">

    </script>
    @RenderSection("foot", required: false)
</body>
</html>
